package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-09
 */
@TableName("join_node")
public class JoinNode extends Model<JoinNode> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 当前节点
     */
	@TableField("current_state")
	private Integer currentState;
    /**
     * 下一节点
     */
	@TableField("next_state")
	private Integer nextState;
    /**
     * 上一节点
     */
	@TableField("last_state")
	private Integer lastState;
    /**
     * 跳转路径
     */
	private String url;
	/**
	 * 备注
	 */

	private String remarks;

	/**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCurrentState() {
		return currentState;
	}

	public void setCurrentState(Integer currentState) {
		this.currentState = currentState;
	}

	public Integer getNextState() {
		return nextState;
	}

	public void setNextState(Integer nextState) {
		this.nextState = nextState;
	}

	public Integer getLastState() {
		return lastState;
	}

	public void setLastState(Integer lastState) {
		this.lastState = lastState;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRemarks() { return remarks; }

	public void setRemarks(String remarks) { this.remarks = remarks; }

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
